//###############
//FILE : FileManagerSpecificRequest.java
//WRITER : Daniel Lowengrub, daniel_i_l, 320687098
//EXERCISE : oop ex3 2011
//DESCRIPTION:
//See below
//###############

package oop.ex3.nameserver;

import oop.ex3.communication.SocketAddress;
import oop.ex3.protocol.sessions.Session;

/**
 *	This is a specified NS request that handles requests coming from a FM. It stores
 *  the address of the FM that made the connection so that it can update the FM information
 *  regarding that FM.
 *  
 *  These types of requests are in charge of ending the session when they're finished.
 * @author daniel
 */
public abstract class FileManagerSpecificRequest extends NameServerRequest{
    protected SocketAddress _fileManager;

    /**
     * Create a new FM specific request. It's initialized with a NS database and an openeing session
     * which are passed to the super class.
     * @param nsDB The nameserver database.
     * @param openingSession The openeing session.
     */
    public FileManagerSpecificRequest(NameServerDatabase nsDB, Session openingSession) {
        super(nsDB, openingSession);
    }

    /**
     * Set the FM that started this request.
     * @param fileManager The address of the FM.
     */
    public void setFileManager(SocketAddress fileManager) {
        _fileManager = fileManager;
    }


}
